package cn.tedu.three;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan("cn.tedu.three")
public class ThreeConfig {

    // 为了测试组件扫描的依赖注入失败
    // 我们注入两把青龙偃月刀对象
    @Bean
    public DragonBlade blade1(){
        return new DragonBlade();
    }
    @Bean
    public DragonBlade blade2(){
        return new DragonBlade();
    }



}
